package com.meisupic.copyright.repo;

import com.meisupic.copyright.domain.po.RealNameAuth;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * creation wuxun
 *
 * @version V1.0
 * @Description: TODO
 * @date 2018/1/13 22:59
 */
public interface RealNameAuthRepo extends JpaRepository<RealNameAuth, Long>,
    JpaSpecificationExecutor<RealNameAuth> {

  List<RealNameAuth> findByCreatorId(Long userId);

  List<RealNameAuth> findRealNameAuthsByDocumetNoIs(String documentNo);
}
